package com.mt.system.controller;

import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
import com.mt.system.api.service.IRoleService;
import com.mt.system.entity.RoleEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class RoleController {
    @Autowired
    IRoleService roleService;

    @GetMapping("/role/findList")
    public ServiceResult<List<RoleEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo) {
        return roleService.findList(params, pagerInfo);
    }
}
